package cn.hr.service;

import cn.hr.base.BaseService;
import cn.hr.pojo.SysRole;
import cn.hr.pojo.SysUser;

import java.util.List;
import java.util.Map;

/**
 * 用户服务接口
 *
 * @author MO
 */
public interface SysUserService extends BaseService<SysUser> {
    /**
     * 更加编码查询用户
     * @param code
     * @return
     * @throws Exception
     */
    SysUser getByCode(String code) throws Exception;


    /**
     * 根据用户id获取角色id
     * @param userId
     * @return
     * @throws Exception
     */
     Integer getRoleIdByUserId(Integer userId) throws Exception;
}
